バージョン

CreatePropertyChange<TOwner,TProperty>(TOwner,String,TProperty,TProperty,String,String) メソッド

指定したプロパティの変更の PropertyChangeUndoUnitBase を作成します。
シンタックス
'宣言
 
Public Overloads Overridable Function CreatePropertyChange
    (Of TOwner As Class,
     TProperty)( _
   ByVal owner As TOwner, _
   ByVal propertyName As String, _
   ByVal oldValue As TProperty, _
   ByVal newValue As TProperty, _
   Optional ByVal propertyDisplayName As String, _
   Optional ByVal typeDisplayName As String _
) As PropertyChangeUndoUnitBase
public virtual PropertyChangeUndoUnitBase CreatePropertyChange<TOwner,TProperty>( 
   TOwner owner,
   string propertyName,
   TProperty oldValue,
   TProperty newValue,
   string propertyDisplayName,
   string typeDisplayName
)
where TOwner: class

パラメータ

owner
プロパティが変更されたインスタンス
propertyName
変更されたパブリック プロパティの文字列名。これを使用して、操作が元に戻されたときに影響を受けるプロパティの PropertyInfo を見つけます。
oldValue
アクションが元に戻されたときに復元されるプロパティの古い値。
newValue
プロパティの新しい値。
propertyDisplayName
エンドユーザーに表示するプロパティの優先名。これが指定されない場合にはプロパティの実際の名前が使用されます。
typeDisplayName
エンドユーザーに表示する、プロパティが変更されているオブジェクトの優先名。

型パラメータ

TOwner
値が変更されたクラスのタイプ
TProperty
変更されたプロパティのタイプ

戻り値の型

指定したプロパティ変更を元に戻すために使用できる undo unit を返します。
参照